package com.hg.junit.Bean;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Profile;

@Configuration
public class MyBeanConfig {
    @Bean
    @Profile("dev")
    public MyBean dev() {
        return new MyBean("kobe", 22, "man");
    }

    @Bean
    @Profile("prod")
    public MyBean prod() {
        return new MyBean("james", 30, "man");
    }

}
